package main

import (
	"fmt"
	"kyland.com/eagle/lib/eagle"
	"kyland.com/eagle/lib/node"
	"kyland.com/eagle/server"
	"os"
)

func main() {
	node.Localhost = os.Getenv("NODE_IP")
	after := server.Init()
	//manager.RecoverFromDB()
	server.StartHttp(fmt.Sprintf(":%s", eagle.GetPort()))
	defer after()
}
